package sms.ui.chengji;

import sms.dao.ChengJiDao;
import sms.entry.ChengJi;
import sms.entry.KeCheng;
import sms.entry.XueSheng;
import sms.ui.ChengJiGuanLi;
import sms.ui.KeChenGuanLi;

import java.util.Scanner;

public class ChengjiDelete {
    private static ChengJiDao chengJiDao = new ChengJiDao();
    public static void show(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要删除成绩的学生ID：");
        int xuesheng_id = sc.nextInt();
        System.out.println("请输入要删除成绩科目的ID：");
        int km_id = sc.nextInt();
        ChengJi chengJi = new ChengJi(xuesheng_id,km_id);
        chengJiDao.remover(chengJi);
        System.out.println("删除成功");
        ChengJiGuanLi.show();
    }
}
